#基础镜像
FROM redis:6.2.11

#修复时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

# Redis客户端连接端口
EXPOSE 6379

#使用自定义conf启动
CMD [ "redis-server", "--requirepass", "erp.1234","--notify-keyspace-events","Ex"]